package me.seawenc.db.checker.bean;

import me.seawenc.db.checker.dbengine.impl.engines.bean.TableColumnBean;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class CheckMetaBean {
    private String datetime=new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date());
    private String dbVersion="";
    // 数据库表元数据,key=表名
    private Map<String, List<TableColumnBean>> tableMetaMap=new HashMap<>();
    // 数据库配置表结果，key=配置表名，value=sql执行结果，只取第一列
    private Map<String, List<String>> confTableItemMap=new HashMap<>();

    public String getDbVersion() {
        return dbVersion;
    }

    public void setDbVersion(String dbVersion) {
        this.dbVersion = dbVersion;
    }

    public Map<String, List<TableColumnBean>> getTableMetaMap() {
        return tableMetaMap;
    }

    public void setTableMetaMap(Map<String, List<TableColumnBean>> tableMetaMap) {
        this.tableMetaMap = tableMetaMap;
    }

    public Map<String, List<String>> getConfTableItemMap() {
        return confTableItemMap;
    }

    public void setConfTableItemMap(Map<String, List<String>> confTableItemMap) {
        this.confTableItemMap = confTableItemMap;
    }

    public String getDatetime() {
        return datetime;
    }

    public void setDatetime(String datetime) {
        this.datetime = datetime;
    }
}
